Skip to content

Conversation

@dtuit
Copy link

@dtuit dtuit commented Apr 23, 2023

This PR addresses an issue in basic.includes evals where samples are marked as incorrect if the sampled text ends with the reference text.

The issue stems from the get_answer function, which previously returned the substring of the sampled text occuring directly after the reference text's location, this will be an empty string if the sampled text ends with the reference text. This update returns the substring where the reference occured (i.e. the answer) instead.

Previously, Includes type evals marked samples as incorrect
if the sampled text ended with the reference text.
@elh
Copy link
Contributor

elh commented May 23, 2023

FYI this has been fixed here #972

@jwang47 jwang47 closed this Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants